package com.sskjdata.cg.service.sys;


import com.sskjdata.cg.po.sys.SysUser;
import com.sskjdata.cg.service.BaseService;

/**
 * @Descirption 用户service接口
 * @Author Jason
 */
public interface SysUserService extends BaseService {
    /**
     * 根据用户名获取用户
     * @param username
     * @Author WuXiang
     * @return SysUser
     * @throws Exception
     */
    public SysUser findByUsername(String username) throws Exception;


    /**
     * 插入用户
     * @param sysUser
     * @return
     * @throws Exception
     */
    @Deprecated
    public SysUser insert(SysUser sysUser) throws Exception;
    


    /**
     * 插入用户
     * @param orgId
     * @param username
     * @param password
     * @return
     * @throws Exception
     */
    SysUser insertUser(Long orgId, String username, String password)throws Exception;
    
    /**
     * 修改密码
     * 
     * @param sysUser
     * @return
     */
    SysUser updatePass(SysUser sysUser);
    
//    SysUser updatePassTime(Date);

    SysUser findUserByPramaryKey(Long id);
}
